import 'package:flutter/material.dart';

class AppbarBase extends StatelessWidget implements PreferredSizeWidget {
  final String title;
  const AppbarBase({super.key, required this.title});

  @override
  Widget build(BuildContext context) {
    return AppBar(
      toolbarHeight: 40,
      backgroundColor: Theme.of(context).colorScheme.primaryContainer,
      surfaceTintColor: Theme.of(context).colorScheme.primaryContainer,
      elevation: 0,
      title: Text(
        title,
        style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
      ),
    );
  }

  @override
  Size get preferredSize => const Size.fromHeight(40);
}
